<?php
namespace shareTrait\Api;
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

use Gy_Library\CusSession;

/**
 * Description of DataProcessor
 *
 * @author hardy
 */
trait Session
{
    /**
     * 获得session ID -》 学生 id
     * @return mixed
     */
    public function getSessionId(){
        $user = CusSession::get(C('AUTH_ID'));
        return $user['id'];
    }
}
